package com.dzl.constant;

/**
 * 商品相关的枚举对象
 * @author liuguanjun
 * @since 2022-02-23 16:34:43
 */
public enum WelfareGoodsEnum {

    // 商品状态；1:上架，0:草稿，2:下架
    GOODS_STATUS_TYPE_SHELVES(1, "上架"),
    GOODS_STATUS_TYPE_DRAFT(0, "草稿"),
    GOODS_STATUS_TYPE_DOWN(2, "下架"),
    GOODS_STATUS_TYPE_DOWN_PLATFORM(3, "下架(平台)"),

    // 商品添加类型；1:上架，0:草稿
    GOODS_OPT_TYPE_SHELVES(1, "上架"),
    GOODS_OPT_TYPE_DRAFT(0, "草稿"),
    GOODS_OPT_TYPE_DOWN(2, "下架"),

    // 规格类型；1:普通券密组，2:API充值商户
    GOODS_ATTR_TYPE_VIRTUAL_VOUCHER(1, "虚拟券密规格"),
    GOODS_ATTR_TYPE_VIRTUAL_RECHARGE(2, "虚拟充值规格"),

    // 商品规格级别；1:一级规格，2:二级规格，3:三级规格
    GOODS_GROUP_SORT_FIRST(1, "一级规格"),
    GOODS_GROUP_SORT_SECOND(2, "二级规格"),
    GOODS_GROUP_SORT_THIRD(3, "三级规格"),

    // 商品类型；1:实体商品，2:虚拟商品
    GOODS_TYPE_PHYSICAL(1, "实体商品"),
    GOODS_TYPE_VIRTUAL(2, "虚拟商品");

    private Integer code;
    private String name;

    WelfareGoodsEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}